﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WomanMotion.WebApi.Model.Dtos.Classify;

namespace WomanMotion.WebApi.Model.Dtos.Schedule
{
    /// <summary>
    /// 赛程计划VM
    /// </summary>
    public class ScheduleVM : BaseVM
    {
        /// <summary>
        /// 比赛分类ID
        /// </summary>
        public long Classid { get; set; }

        /// <summary>
        ///比赛分类对象
        /// </summary>
        [Navigate(NavigateType.OneToOne, nameof(Classid))]
        public ClassifyVM? Classify { get; set; } //不能赋值只能是null

        /// <summary>
        /// 开始日期
        /// </summary>
        public DateTime Starttime { get; set; }
        /// <summary>
        /// 比赛时间字符串格式
        /// </summary>
        public string? StarttimeStr
        {
            get { return Starttime.ToString("yyyy年MM月dd日"); }
            set
            {
            }
        }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
    }
}